package com.thor.palmmall.hdmall.payment.impl;

import java.util.List;

import com.thor.commons.entity.UCN;
import com.thor.commons.exception.ThorServiceException;
import com.thor.palmmall.hdmall.common.HDMBaseServiceImpl;
import com.thor.palmmall.hdmall.payment.HDMPayMethodQueryResponse;
import com.thor.palmmall.hdmall.payment.HDMPaymentService;

public class HDMPaymentServiceImpl extends HDMBaseServiceImpl implements HDMPaymentService {

  @Override
  public List<UCN> queryPayment() throws ThorServiceException {
    HDMPayMethodQueryResponse resp = get("api/payment/query", HDMPayMethodQueryResponse.class);
    if (resp != null) {
      return resp.getData();
    }
    return null;
  }

}
